﻿<?php require_once('../wp-blog-header.php'); ?>
<?php get_header(); ?>
<?php
// $username = $_SESSION['username'];
// $isLoginOK = $_SESSION['loginOK'];
// var_dump($username);
// var_dump($isLoginOK);
// require_once('checkSession.php');
?>

<?php
	require_once('conn.php');
	
	$id_buyRecord = $_GET['id'];
	$mobileNO = $_GET['no'];
	
	$exec = "select * from customer where mobileNO='".$mobileNO."'";
	//var_dump($exec);
	$result = mysql_query($exec);
	$row=mysql_fetch_row($result);
	$name=$row[3];
	///var_dump($name);
	
	$query = "SELECT * FROM pairMap WHERE mapIndex='".$row[4]."'";
	$queryresult = mysql_query($query);
	$trans = mysql_fetch_object($queryresult);			
	$sex = $trans->mapName;
	echo "<form method='POST' action='inputRevisitRecord.php' name='send'>";
	echo "<table align='center' >";
		echo "<tr align='center'>";
			echo "<td>"; echo "<input type='hidden' name='id_buyRecord' value='".$id_buyRecord."' size='10'>"; echo "</td>";
		echo "</tr>";
		echo "<tr align='center'>";
			echo "<td>"; echo "<input type='text' name='mobileNO' value='".$mobileNO."' size='10'>"; echo "</td>";
			echo "<td>"; echo $name; echo "</td>";
			echo "<td>"; echo $sex; echo "</td>"; 
		echo "</tr>";
		
		echo "<tr align='center'>";
			echo "<td>"; echo "</td>";
			echo "<td>"; echo "综合评分(满分100分):"; echo "</td>";
			echo "<td>"; echo "<input type='text' name='score' value='0' size='10'>"; echo "</td>";
		echo "</tr>";
		
		echo "<tr align='center'>";
			echo "<td>"; echo "</td>";
			echo "<td>"; echo "顾客反馈详情:"; echo "</td>";
			echo "<td>"; echo "<textarea rows='5' name='feedback' cols='50'>输入回访获取的用户反馈</textarea>"; echo "</td>";
		echo "</tr>";
		
		echo "<tr align='center'>";
			echo "<td>"; echo "</td>";
			echo "<td>"; echo "回访人:"; echo "</td>";
			echo "<td>";
				echo "<select name='optID'>";
				echo "<option value='opt001'>陈伟宣";
				echo "<option value='opt000'>李涛";
				echo "<option value='opt002'>李敏";
				echo "</select>";
			echo "</td>";		
		echo "</tr>";
		
		echo "<tr align='center'>";
			
		echo "</tr>";		
			echo "<td>"; echo "<br>"; echo "</td>";
		echo "<tr align='center'>";
			echo "<td>"; echo "</td>";
			echo "<td>"; echo "</td>";
			echo "<td>"; echo "<input type='submit' name='submit' value='确认提交'>"; echo "</td>";		
		echo "</tr>";		
	echo "</table>";
	echo "</form>";
?>
<?php get_footer(); ?>